/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Pages;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;

/**
 *
 * @author user
 */
public class SettingsPage {        

    public WebElement SettingsAdvancedExpander(WebDriver driver) throws Exception {
        Pages.Page d = new Page();
        d.getElement(driver, "Advanced Settings", "chrome://settings", "advanced-settings-expander", "advanced-settings-expander", "#advanced-settings-expander", ".//button[@id='advanced-settings-expander']");
        return d.element;    
    }
    
    public WebElement SafeBrowsingCheckbox (WebDriver driver) throws Exception {
        Pages.Page d = new Page();
        d.getElement(driver, "SafeBrowsingCheckbox", "chrome://settings", "safeBrowsingEnabled", "advanced-settings", "#safeBrowsingEnabled", "//*[@id=\"safeBrowsingEnabled\"]");
        return d.element;
    }
    
}



   
   
    
    

